package cn.edu.scau.cmi.luotiansheng.composite.consistent;

import java.util.HashSet;
import java.util.Set;

public abstract class ConsistentComponent {
	

	ConsistentComponent parent=null;
	
	Set<ConsistentComponent> children=new HashSet<ConsistentComponent>();
	
	abstract String doSomething();
	
	abstract ConsistentComponent getParent();
	abstract Set<ConsistentComponent> getChildren();
	abstract ConsistentComponent addChild(ConsistentComponent child);
	abstract ConsistentComponent deleteChild(ConsistentComponent child);
	
	

}